package com.jzr.medical.controller.api;

import com.jzr.common.entity.vo.Result;
import com.jzr.medical.db1.service.DoctorService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

@RestController
@RequestMapping("/api/doctor")
public class DoctorController {
    @Autowired
    private DoctorService doctorService;

    @GetMapping("/codeList")
    public Result<List<Map<String,Object>>> codeList(String districtNo, String deptNo){
        return Result.success("成功",doctorService.codeList(districtNo,deptNo));
    }

}
